package com.mdd.admin.service.system;

import com.mdd.admin.validate.common.PageParam;
import com.mdd.admin.validate.system.CouponReceiveParam;
import com.mdd.admin.vo.system.CouponReceiveListVo;
import com.mdd.admin.vo.system.CouponReceiveDetailVo;
import com.mdd.common.core.PageResult;
import com.mdd.common.entity.system.CouponReceive;

import java.util.List;
import java.util.Map;

/**
 * 领取记录服务接口类
 * @author panweiliang
 */
public interface ICouponReceiveService {

    /**
     * 领取记录列表
     *
     * @author panweiliang
     * @param pageParam 分页参数
     * @param params 搜索参数
     * @return PageResult<CouponReceiveVo>
     */
    PageResult<CouponReceiveListVo> list(PageParam pageParam, Map<String, String> params);


    /**
     * 作废领取记录
     *
     * @author panweiliang
     * @param id 主键ID
     */
    void cancel(String id);

    Map<String, Object> count();

    Long countUsedByUserId(Integer userId);

    List<CouponReceive> getByStatus(Integer status);

    void expire(Long curTime);
}
